home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 6 / QRZ Ham Radio Callsign Database - Volume 6.iso / pc / files / mac / adv_hc.hqx / AdvancedKit / Advanced Ham Test 5.0 SA / background_7720.xml < prev    next >
Encoding:
Extensible Markup Language  |  1995-07-30  |  15.6 KB  |  454 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>7720</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_8153.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_5866.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>16</left>
  23.             <top>68</top>
  24.             <right>500</right>
  25.             <bottom>136</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>13</textHeight>
  40.         <name>Q1</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>11</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>48</left>
  55.             <top>137</top>
  56.             <right>499</right>
  57.             <bottom>177</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>13</textHeight>
  72.         <name>D</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>25</id>
  77.         <type>button</type>
  78.         <visible> <true /> </visible>
  79.         <reserved5> 0 </reserved5>
  80.         <reserved4> 0 </reserved4>
  81.         <reserved3> 0 </reserved3>
  82.         <reserved2> 0 </reserved2>
  83.         <reserved1> 0 </reserved1>
  84.         <enabled> <true /> </enabled>
  85.         <rect>
  86.             <left>204</left>
  87.             <top>313</top>
  88.             <right>241</right>
  89.             <bottom>342</bottom>
  90.         </rect>
  91.         <style>transparent</style>
  92.         <showName> <false /> </showName>
  93.         <highlight> <false /> </highlight>
  94.         <autoHighlight> <false /> </autoHighlight>
  95.         <sharedHighlight> <true /> </sharedHighlight>
  96.         <family>0</family>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>902</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Chicago</font>
  101.         <textSize>12</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <name>Prev</name>
  104.         <script>on mouseUp
  105. -- ΓÇóΓÇóΓÇóComment out last command & uncomment next to last for sequential
  106. -- cards.  Comment out next to last and uncomment last command for
  107. -- random cards from buildList (in background of first card of stack).
  108. global immediate, group, questans
  109. if item group of questans is not empty then
  110. if immediate then reView
  111. end if
  112. visual effect wipe right fast to black
  113. visual effect wipe left
  114. -- go to previous card  -- ΓÇóΓÇóΓÇó for sequential cards
  115. randomPrev -- ΓÇóΓÇóΓÇó for randomly-generated cards from buildList
  116. end mouseUp</script>
  117.     </part>
  118.     <part>
  119.         <id>26</id>
  120.         <type>button</type>
  121.         <visible> <true /> </visible>
  122.         <reserved5> 0 </reserved5>
  123.         <reserved4> 0 </reserved4>
  124.         <reserved3> 0 </reserved3>
  125.         <reserved2> 0 </reserved2>
  126.         <reserved1> 0 </reserved1>
  127.         <enabled> <true /> </enabled>
  128.         <rect>
  129.             <left>297</left>
  130.             <top>313</top>
  131.             <right>333</right>
  132.             <bottom>342</bottom>
  133.         </rect>
  134.         <style>transparent</style>
  135.         <showName> <false /> </showName>
  136.         <highlight> <false /> </highlight>
  137.         <autoHighlight> <false /> </autoHighlight>
  138.         <sharedHighlight> <true /> </sharedHighlight>
  139.         <family>0</family>
  140.         <titleWidth>0</titleWidth>
  141.         <icon>26425</icon>
  142.         <textAlign>center</textAlign>
  143.         <font>Chicago</font>
  144.         <textSize>12</textSize>
  145.         <textStyle>plain</textStyle>
  146.         <name>Next</name>
  147.         <script>on mouseUp
  148. -- ΓÇóΓÇóΓÇóComment out last command & uncomment next to last for sequential
  149. -- cards.  Comment out next to last and uncomment last command for
  150. -- random cards from buildList (in background of first card of stack).
  151. global immediate, group, questans
  152. if item group of questans is not empty then
  153. if immediate then reView
  154. end if
  155. visual effect wipe left fast to black
  156. visual effect wipe right fast
  157. -- go to next card -- ΓÇóΓÇóΓÇó for sequential cards
  158. randomNext -- ΓÇóΓÇóΓÇó for randomly-generated cards from buildList
  159. end mouseUp
  160. </script>
  161.     </part>
  162.     <part>
  163.         <id>27</id>
  164.         <type>field</type>
  165.         <visible> <true /> </visible>
  166.         <dontWrap> <false /> </dontWrap>
  167.         <dontSearch> <false /> </dontSearch>
  168.         <sharedText> <false /> </sharedText>
  169.         <fixedLineHeight> <true /> </fixedLineHeight>
  170.         <autoTab> <false /> </autoTab>
  171.         <lockText> <false /> </lockText>
  172.         <rect>
  173.             <left>48</left>
  174.             <top>178</top>
  175.             <right>508</right>
  176.             <bottom>219</bottom>
  177.         </rect>
  178.         <style>transparent</style>
  179.         <autoSelect> <false /> </autoSelect>
  180.         <showLines> <false /> </showLines>
  181.         <wideMargins> <false /> </wideMargins>
  182.         <multipleLines> <false /> </multipleLines>
  183.         <reservedFamily> 0 </reservedFamily>
  184.         <titleWidth>0</titleWidth>
  185.         <icon>0</icon>
  186.         <textAlign>left</textAlign>
  187.         <font>Geneva</font>
  188.         <textSize>10</textSize>
  189.         <textStyle>plain</textStyle>
  190.         <textHeight>13</textHeight>
  191.         <name>D</name>
  192.         <script></script>
  193.     </part>
  194.     <part>
  195.         <id>28</id>
  196.         <type>field</type>
  197.         <visible> <true /> </visible>
  198.         <dontWrap> <false /> </dontWrap>
  199.         <dontSearch> <false /> </dontSearch>
  200.         <sharedText> <false /> </sharedText>
  201.         <fixedLineHeight> <true /> </fixedLineHeight>
  202.         <autoTab> <false /> </autoTab>
  203.         <lockText> <false /> </lockText>
  204.         <rect>
  205.             <left>48</left>
  206.             <top>221</top>
  207.             <right>508</right>
  208.             <bottom>262</bottom>
  209.         </rect>
  210.         <style>transparent</style>
  211.         <autoSelect> <false /> </autoSelect>
  212.         <showLines> <false /> </showLines>
  213.         <wideMargins> <false /> </wideMargins>
  214.         <multipleLines> <false /> </multipleLines>
  215.         <reservedFamily> 0 </reservedFamily>
  216.         <titleWidth>0</titleWidth>
  217.         <icon>0</icon>
  218.         <textAlign>left</textAlign>
  219.         <font>Geneva</font>
  220.         <textSize>10</textSize>
  221.         <textStyle>plain</textStyle>
  222.         <textHeight>13</textHeight>
  223.         <name>D</name>
  224.         <script></script>
  225.     </part>
  226.     <part>
  227.         <id>29</id>
  228.         <type>field</type>
  229.         <visible> <true /> </visible>
  230.         <dontWrap> <false /> </dontWrap>
  231.         <dontSearch> <false /> </dontSearch>
  232.         <sharedText> <false /> </sharedText>
  233.         <fixedLineHeight> <true /> </fixedLineHeight>
  234.         <autoTab> <false /> </autoTab>
  235.         <lockText> <false /> </lockText>
  236.         <rect>
  237.             <left>47</left>
  238.             <top>264</top>
  239.             <right>502</right>
  240.             <bottom>306</bottom>
  241.         </rect>
  242.         <style>transparent</style>
  243.         <autoSelect> <false /> </autoSelect>
  244.         <showLines> <false /> </showLines>
  245.         <wideMargins> <false /> </wideMargins>
  246.         <multipleLines> <false /> </multipleLines>
  247.         <reservedFamily> 0 </reservedFamily>
  248.         <titleWidth>0</titleWidth>
  249.         <icon>0</icon>
  250.         <textAlign>left</textAlign>
  251.         <font>Geneva</font>
  252.         <textSize>10</textSize>
  253.         <textStyle>plain</textStyle>
  254.         <textHeight>13</textHeight>
  255.         <name>D</name>
  256.         <script></script>
  257.     </part>
  258.     <part>
  259.         <id>20</id>
  260.         <type>field</type>
  261.         <visible> <true /> </visible>
  262.         <dontWrap> <false /> </dontWrap>
  263.         <dontSearch> <false /> </dontSearch>
  264.         <sharedText> <false /> </sharedText>
  265.         <fixedLineHeight> <true /> </fixedLineHeight>
  266.         <autoTab> <false /> </autoTab>
  267.         <lockText> <false /> </lockText>
  268.         <rect>
  269.             <left>15</left>
  270.             <top>31</top>
  271.             <right>166</right>
  272.             <bottom>53</bottom>
  273.         </rect>
  274.         <style>shadow</style>
  275.         <autoSelect> <false /> </autoSelect>
  276.         <showLines> <false /> </showLines>
  277.         <wideMargins> <false /> </wideMargins>
  278.         <multipleLines> <false /> </multipleLines>
  279.         <reservedFamily> 0 </reservedFamily>
  280.         <titleWidth>0</titleWidth>
  281.         <icon>0</icon>
  282.         <textAlign>left</textAlign>
  283.         <font>Chicago</font>
  284.         <textSize>12</textSize>
  285.         <textStyle>plain</textStyle>
  286.         <textHeight>16</textHeight>
  287.         <name>Q#</name>
  288.         <script>
  289. </script>
  290.     </part>
  291.     <part>
  292.         <id>38</id>
  293.         <type>button</type>
  294.         <visible> <false /> </visible>
  295.         <reserved5> 0 </reserved5>
  296.         <reserved4> 0 </reserved4>
  297.         <reserved3> 0 </reserved3>
  298.         <reserved2> 0 </reserved2>
  299.         <reserved1> 0 </reserved1>
  300.         <enabled> <true /> </enabled>
  301.         <rect>
  302.             <left>173</left>
  303.             <top>116</top>
  304.             <right>245</right>
  305.             <bottom>138</bottom>
  306.         </rect>
  307.         <style>rectangle</style>
  308.         <showName> <true /> </showName>
  309.         <highlight> <false /> </highlight>
  310.         <autoHighlight> <false /> </autoHighlight>
  311.         <sharedHighlight> <true /> </sharedHighlight>
  312.         <family>0</family>
  313.         <titleWidth>0</titleWidth>
  314.         <icon>0</icon>
  315.         <textAlign>center</textAlign>
  316.         <font>Chicago</font>
  317.         <textSize>12</textSize>
  318.         <textStyle>plain</textStyle>
  319.         <name>Correct!</name>
  320.         <script></script>
  321.     </part>
  322.     <part>
  323.         <id>39</id>
  324.         <type>button</type>
  325.         <visible> <true /> </visible>
  326.         <reserved5> 0 </reserved5>
  327.         <reserved4> 0 </reserved4>
  328.         <reserved3> 0 </reserved3>
  329.         <reserved2> 0 </reserved2>
  330.         <reserved1> 0 </reserved1>
  331.         <enabled> <true /> </enabled>
  332.         <rect>
  333.             <left>14</left>
  334.             <top>138</top>
  335.             <right>44</right>
  336.             <bottom>174</bottom>
  337.         </rect>
  338.         <style>checkbox</style>
  339.         <showName> <true /> </showName>
  340.         <highlight> <false /> </highlight>
  341.         <autoHighlight> <false /> </autoHighlight>
  342.         <sharedHighlight> <true /> </sharedHighlight>
  343.         <family>0</family>
  344.         <titleWidth>0</titleWidth>
  345.         <icon>0</icon>
  346.         <textAlign>center</textAlign>
  347.         <font>Chicago</font>
  348.         <textSize>12</textSize>
  349.         <textStyle>plain</textStyle>
  350.         <name>A</name>
  351.         <script>on mouseUp
  352. global questans, group
  353. set hilight of background button A to true
  354. set hilight of background button B to false
  355. set hilight of background button C to false
  356. set hilight of background button D to false
  357. put "A" into item group of questans
  358. end mouseUp
  359. </script>
  360.     </part>
  361.     <part>
  362.         <id>40</id>
  363.         <type>button</type>
  364.         <visible> <true /> </visible>
  365.         <reserved5> 0 </reserved5>
  366.         <reserved4> 0 </reserved4>
  367.         <reserved3> 0 </reserved3>
  368.         <reserved2> 0 </reserved2>
  369.         <reserved1> 0 </reserved1>
  370.         <enabled> <true /> </enabled>
  371.         <rect>
  372.             <left>14</left>
  373.             <top>178</top>
  374.             <right>44</right>
  375.             <bottom>214</bottom>
  376.         </rect>
  377.         <style>checkbox</style>
  378.         <showName> <true /> </showName>
  379.         <highlight> <false /> </highlight>
  380.         <autoHighlight> <false /> </autoHighlight>
  381.         <sharedHighlight> <true /> </sharedHighlight>
  382.         <family>0</family>
  383.         <titleWidth>0</titleWidth>
  384.         <icon>0</icon>
  385.         <textAlign>center</textAlign>
  386.         <font>Chicago</font>
  387.         <textSize>12</textSize>
  388.         <textStyle>plain</textStyle>
  389.         <name>B</name>
  390.         <script>on mouseUp
  391. global questans, group
  392. set hilight of background button A to false
  393. set hilight of background button B to true
  394. set hilight of background button C to false
  395. set hilight of background button D to false
  396. put "B" into item group of questans
  397. end mouseUp
  398. </script>
  399.     </part>
  400.     <part>
  401.         <id>41</id>
  402.         <type>button</type>
  403.         <visible> <true /> </visible>
  404.         <reserved5> 0 </reserved5>
  405.         <reserved4> 0 </reserved4>
  406.         <reserved3> 0 </reserved3>
  407.         <reserved2> 0 </reserved2>
  408.         <reserved1> 0 </reserved1>
  409.         <enabled> <true /> </enabled>
  410.         <rect>
  411.             <left>14</left>
  412.             <top>219</top>
  413.             <right>44</right>
  414.             <bottom>255</bottom>
  415.         </rect>
  416.         <style>checkbox</style>
  417.         <showName> <true /> </showName>
  418.         <highlight> <false /> </highlight>
  419.         <autoHighlight> <false /> </autoHighlight>
  420.         <sharedHighlight> <true /> </sharedHighlight>
  421.         <family>0</family>
  422.         <titleWidth>0</titleWidth>
  423.         <icon>0</icon>
  424.         <textAlign>center</textAlign>
  425.         <font>Chicago</font>
  426.         <textSize>12</textSize>
  427.         <textStyle>plain</textStyle>
  428.         <name>C</name>
  429.         <script>on mouseUp
  430. global questans, group
  431. set hilight of background button A to false
  432. set hilight of background button B to false
  433. set hilight of background button C to true
  434. set hilight of background button D to false
  435. put "C" into item group of questans
  436. end mouseUp
  437. </script>
  438.     </part>
  439.     <part>
  440.         <id>42</id>
  441.         <type>button</type>
  442.         <visible> <true /> </visible>
  443.         <reserved5> 0 </reserved5>
  444.         <reserved4> 0 </reserved4>
  445.         <reserved3> 0 </reserved3>
  446.         <reserved2> 0 </reserved2>
  447.         <reserved1> 0 </reserved1>
  448.         <enabled> <true /> </enabled>
  449.         <rect>
  450.             <left>14</left>
  451.             <top>264</top>
  452.             <right>44</right>
  453.             <bottom>300</bottom>
  454.         </rect>
  455.         <style>checkbox</style>
  456.         <showName> <true /> </showName>
  457.         <highlight> <false /> </highlight>
  458.         <autoHighlight> <false /> </autoHighlight>
  459.         <sharedHighlight> <true /> </sharedHighlight>
  460.         <family>0</family>
  461.         <titleWidth>0</titleWidth>
  462.         <icon>0</icon>
  463.         <textAlign>center</textAlign>
  464.         <font>Chicago</font>
  465.         <textSize>12</textSize>
  466.         <textStyle>plain</textStyle>
  467.         <name>D</name>
  468.         <script>on mouseUp
  469. global questans, group
  470. set hilight of background button A to false
  471. set hilight of background button B to false
  472. set hilight of background button C to false
  473. set hilight of background button D to true
  474. put "D" into item group of questans
  475. end mouseUp
  476. </script>
  477.     </part>
  478.     <part>
  479.         <id>43</id>
  480.         <type>button</type>
  481.         <visible> <true /> </visible>
  482.         <reserved5> 0 </reserved5>
  483.         <reserved4> 0 </reserved4>
  484.         <reserved3> 0 </reserved3>
  485.         <reserved2> 0 </reserved2>
  486.         <reserved1> 0 </reserved1>
  487.         <enabled> <true /> </enabled>
  488.         <rect>
  489.             <left>399</left>
  490.             <top>310</top>
  491.             <right>445</right>
  492.             <bottom>342</bottom>
  493.         </rect>
  494.         <style>default</style>
  495.         <showName> <true /> </showName>
  496.         <highlight> <false /> </highlight>
  497.         <autoHighlight> <false /> </autoHighlight>
  498.         <sharedHighlight> <true /> </sharedHighlight>
  499.         <family>0</family>
  500.         <titleWidth>0</titleWidth>
  501.         <icon>0</icon>
  502.         <textAlign>center</textAlign>
  503.         <font>Times</font>
  504.         <textSize>12</textSize>
  505.         <textStyle>plain</textStyle>
  506.         <name>QUIT</name>
  507.         <script>on mouseUp
  508. doMenu "Quit HyperCard"
  509. end mouseUp</script>
  510.     </part>
  511.     <name>Test</name>
  512.     <script>On openCard
  513. global questans, questkey, rightone, group
  514. hide background button "Correct!"
  515. set hilight of background button A to false
  516. set hilight of background button B to false
  517. set hilight of background button C to false
  518. set hilight of background button D to false
  519. get the number of card
  520. -- ΓÇóΓÇóΓÇó choose question # or card # option
  521. put "Question #" & group into field "Q#" -- question # option
  522. -- put "Question #"&it-2 into field "Q#" -- card # option
  523. put rightone into item group of questkey
  524. put item group of questans into foo
  525. if foo is not empty then set hilight of background button foo to true
  526. end openCard
  527.  
  528. on closeCard
  529. set lockScreen to true
  530. set hilight of background button A to false
  531. set hilight of background button B to false
  532. set hilight of background button C to false
  533. set hilight of background button D to false
  534. set lockScreen to false
  535. hide background button "Correct!"
  536. end closeCard
  537.  
  538. on idle
  539. global time1
  540. -- comment out next line (exit idle) if you want a time limit on test.
  541. -- don't forget to set time limit as described in Exam button of
  542. -- first card.
  543. exit idle
  544. put the seconds into time2
  545. if time2<time1 then exit idle
  546. if time2ΓëÑtime1 then
  547. answer "Too much Time. Try again?" with "OK" or "Quit"
  548. end if
  549. if it is "OK" then
  550. visual effect dissolve to black
  551. visual effect iris open
  552. go first card
  553. openStack
  554. else
  555. visual effect dissolve
  556. go home
  557. end if
  558. end idle
  559.  
  560. on randomNext
  561. global group,questlist
  562. add one to group
  563. if group > 50 then go card report
  564. get item group of questlist
  565. go card it
  566. end randomNext
  567.  
  568. on randomPrev
  569. global group,questlist
  570. subtract one from group
  571. if group < 1 then go first card
  572. get item group of questlist
  573. go card it
  574. end randomPrev
  575.  
  576. on reView
  577. global rightone, immediate
  578. if not immediate then
  579. wait 3 seconds
  580. put "Correct answer is " & rightone into foo
  581. answer foo with "Oh!"
  582. else
  583. if hilite of background button rightone is false then
  584. put "Correct answer is " & rightone into foo
  585. answer foo with "Oh!"
  586. else
  587. -- show background button "Correct!"
  588. end if
  589. end if
  590. end reView
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610. </script>
  611. </background>
  612.